<script language="javascript">
    (function($) {
        $(document).ready( function() {
            $('a.toggle').click(function(e) {                
                $(this).nextAll("div").slideToggle("slow");            
                e.preventDefault();
            });
        });
    })(jQuery);
</script>
<div id="content">
    <div class="container_medium">
        <h1 class="red">
<?php            
            if($this->session->userdata('membership') != 4)
                echo "Click below option to sell your:";
?>   
        </h1>
<?php
        if($this->session->userdata('membership') == 1)
        {
            //Private seller            
?>
            <ul>
                <li style="padding-top: 0px;">                    
                    <a href="#" class="toggle"><h2>Car</h2></a>                    
                    <div id="sell_car" class="selling_container">
                        <a href="<?php echo base_url();?>index.php/car/register">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/add.png" />
                                <div>Add</div>
                            </div>
                        </a>
                        <a href="<?php echo base_url();?>index.php/car/listed/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/listed.png" />
                                <div>Listed (<?php echo $number_car_approved; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/car/pending/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/pending.png" />
                                <div>Pending (<?php echo $number_car_pending; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/car/expired/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item" style="margin-right: 0px;">
                                <img src="<?php echo base_url(); ?>system/public/img/expired.png" />
                                <div>Expired (<?php echo $number_car_expired; ?>)</div>
                            </div>                            
                        </a>
                    </div>
                </li>
                <li style="padding-top: 0px;">
                    <a href="#" class="toggle"><h2>Product</h2></a>
                    <div id="sell_product" class="selling_container">
                        <a href="<?php echo base_url();?>index.php/part/register">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/add.png" />
                                <div>Add</div>
                            </div>
                        </a>
                        <a href="<?php echo base_url();?>index.php/part/listed/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/listed.png" />
                                <div>Listed (<?php echo $number_part_approved; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/part/pending/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/pending.png" />
                                <div>Pending (<?php echo $number_part_pending; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/part/expired/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item" style="margin-right: 0px;">
                                <img src="<?php echo base_url(); ?>system/public/img/expired.png" />
                                <div>Expired (<?php echo $number_part_expired; ?>)</div>
                            </div>                            
                        </a>                        
                    </div>                    
                </li>
            </ul>
<?php            
        }
        else if ($this->session->userdata('membership') == 2)
        {
            //Broker
?>
            <ul>
                <li style="padding-top: 0px;">                    
                    <a href="#" class="toggle"><h2>Car</h2></a>                    
                    <div id="sell_car" class="selling_container">
                        <a href="<?php echo base_url();?>index.php/car/register">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/add.png" />
                                <div>Add</div>
                            </div>
                        </a>
                        <a href="<?php echo base_url();?>index.php/car/listed/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/listed.png" />
                                <div>Listed (<?php echo $number_car_approved; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/car/pending/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/pending.png" />
                                <div>Pending (<?php echo $number_car_pending; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/car/expired/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item" style="margin-right: 0px;">
                                <img src="<?php echo base_url(); ?>system/public/img/expired.png" />
                                <div>Expired (<?php echo $number_car_expired; ?>)</div>
                            </div>                            
                        </a>
                    </div>
                </li>
            </ul>
<?php                        
        }
        else if ($this->session->userdata('membership') == 3)
        {
            //Vendor
?>
            <ul>
                <li style="padding-top: 0px;">                    
                    <a href="#" class="toggle"><h2>Car</h2></a>                    
                    <div id="sell_car" class="selling_container">
                        <a href="<?php echo base_url();?>index.php/car/register">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/add.png" />
                                <div>Add</div>
                            </div>
                        </a>
                        <a href="<?php echo base_url();?>index.php/car/listed/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/listed.png" />
                                <div>Listed (<?php echo $number_car_approved; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/car/pending/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/pending.png" />
                                <div>Pending (<?php echo $number_car_pending; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/car/expired/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item" style="margin-right: 0px;">
                                <img src="<?php echo base_url(); ?>system/public/img/expired.png" />
                                <div>Expired (<?php echo $number_car_expired; ?>)</div>
                            </div>                            
                        </a>
                    </div>
                </li>
                <li style="padding-top: 0px;">
                    <a href="#" class="toggle"><h2>Service</h2></a>
                    <div id="sell_service" class="selling_container">
                        <a href="<?php echo base_url();?>index.php/service/register">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/add.png" />
                                <div>Add</div>
                            </div>
                        </a>
                        <a href="<?php echo base_url();?>index.php/service/listed/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/listed.png" />
                                <div>Listed (<?php echo $number_service_approved; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/service/pending/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/pending.png" />
                                <div>Pending (<?php echo $number_service_pending; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/service/expired/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item" style="margin-right: 0px;">
                                <img src="<?php echo base_url(); ?>system/public/img/expired.png" />
                                <div>Expired (<?php echo $number_service_expired; ?>)</div>
                            </div>                            
                        </a>                                          
                    </div>                    
                </li>
                <li style="padding-top: 0px;">
                    <a href="#" class="toggle"><h2>Product</h2></a>
                    <div id="sell_product" class="selling_container">
                        <a href="<?php echo base_url();?>index.php/part/register">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/add.png" />
                                <div>Add</div>
                            </div>
                        </a>
                        <a href="<?php echo base_url();?>index.php/part/listed/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/listed.png" />
                                <div>Listed (<?php echo $number_part_approved; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/part/pending/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item">
                                <img src="<?php echo base_url(); ?>system/public/img/pending.png" />
                                <div>Pending (<?php echo $number_part_pending; ?>)</div>
                            </div>                            
                        </a>
                        <a href="<?php echo base_url();?>index.php/part/expired/<?php echo $this->session->userdata('userid'); ?>">
                            <div class="selling_item" style="margin-right: 0px;">
                                <img src="<?php echo base_url(); ?>system/public/img/expired.png" />
                                <div>Expired (<?php echo $number_part_expired; ?>)</div>
                            </div>                            
                        </a>                        
                    </div>                    
                </li>
            </ul>
<?php            
        }            
?>
    </div>
    <div class="quicklink">
<?php 
        $this->load->view('/templates/quicklinks');
?>
    </div>
</div>
<div class="separator"></div>